package com.why.action;

import java.util.ArrayList;
import java.util.List;

import net.sf.json.JSONArray;

import org.springframework.web.bind.annotation.ResponseBody;

import com.opensymphony.xwork2.ActionSupport;
import com.why.entity.EasyUiTree;
import com.why.service.IndexManager;

public class IndexAction extends ActionSupport {
	private String jsonData;
	private IndexManager indexManager;
	List<EasyUiTree> retList;
	
	
	public String  indexTree(){	
		EasyUiTree en = indexManager.getAllIndex();
		retList = new ArrayList<EasyUiTree>();
		retList.add(en);
	    return SUCCESS;
	}
	
	
	public String getJsonData() {
		return jsonData;
	}
	public void setJsonData(String jsonData) {
		this.jsonData = jsonData;
	}
	public IndexManager getIndexManager() {
		return indexManager;
	}
	public void setIndexManager(IndexManager indexManager) {
		this.indexManager = indexManager;
	}
	public List<EasyUiTree> getRetList() {
		return retList;
	}
	public void setRetList(List<EasyUiTree> retList) {
		this.retList = retList;
	}
}
